{if $item.fieldType == "password"}
<input      tableName   =   "{$item.tableName}"
        {if $item.accept}
            accept      =   "{$item.accept}"
        {/if}
        {if $item.accesskey}
            accesskey   =   "{$item.accesskey}"
        {/if}
        {if $item.alt}
            alt         =   "{$item.alt}"
        {/if}
        {if $item.class}
            class       =  "{$item.class}"
        {/if}
        {if $item.disabled == 1}
            disabled
        {/if}
            id          =   "{$item.fieldId}"
        {if $item.maxlength}
            maxlength   =   "{$item.maxlength}"
        {/if}
            name        =   "{$item.name}"
        {if $item.readonly == 1}
            readonly
        {/if}
        {if $item.size}
            size        =   "{$item.size}"
        {/if}
        {if $item.style}
            style       =   "{$item.style}"
        {/if}
        {if $item.title}
            title       =   "{$item.title}"
        {/if}
            type        =   "password"
/>
<label for="{$item.fieldId}_repeat">Powtórz hasło:</label>
<input id="{$item.fieldId}_repeat" name="password_repeat" type="password" />
{else}
<input      tableName   =   "{$item.tableName}"
        {if $item.accept}
            accept      =   "{$item.accept}"
        {/if}
        {if $item.accesskey}
            accesskey   =   "{$item.accesskey}"
        {/if}
        {if $item.alt}
            alt         =   "{$item.alt}"
        {/if}
        {if $item.fieldType == "checkbox" && $item.value == 1}
            checked
        {/if}
        {if $item.class}
            class       =  "{$item.class}"
        {/if}
        {if $item.disabled == 1}
            disabled
        {/if}
            id          =   "input-{$item.fieldId}"
        {if $item.maxlength}
            maxlength   =   "{$item.maxlength}"
        {/if}
            name        =   "{$item.name}"
        {if $item.readonly == 1}
            readonly
        {/if}
        {if $item.size}
            size        =   "{$item.size|default: 30}"
        {/if}
        {if $item.style}
            style       =   "{$item.style}"
        {/if}
        {if $item.title}
            title       =   "{$item.title}"
        {/if}
            type        =   "{$item.fieldType|default: text}"
        {if $item.fieldType != "checkbox" && $item.value}
            value       =   "{$item.value}"
        {/if}
/>
{/if}